<?php if (!defined('TL_ROOT')) die('You can not access this file directly!');

/**
 * TYPOlight webCMS
 * Copyright (C) 2005-2009 Leo Feyer
 *
 * This program is free software: you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation, either
 * version 2.1 of the License, or (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * Lesser General Public License for more details.
 * 
 * You should have received a copy of the GNU Lesser General Public
 * License along with this program. If not, please visit the Free
 * Software Foundation website at http://www.gnu.org/licenses/.
 *
 * PHP version 5
 * @copyright  include7 AG - Flavian Sierk 
 * @author     Flavian Sierk 
 * @package    donate 
 * @license    LGPL 
 * @filesource
 */

	$GLOBALS['TL_DCA']['tl_content']['palettes']['donate']    = '{type_legend},type,headline;{include_legend},donate_address,donate_message,donate_currency_code,donate_total,donate_javascript,donate_thanks;{protected_legend:hide},protected;{expert_legend:hide},guests,cssID,space';
	


		$GLOBALS['TL_DCA']['tl_content']['fields']['donate_address'] = array(
			'label'                   => &$GLOBALS['TL_LANG']['MSC']['donate_address'],
			'exclude'                 => true,
			'inputType'               => 'text',
			'eval'                    => array('mandatory'=>true, 'maxlength'=>255, 'tl_class'=>'w50')
		);
		$GLOBALS['TL_DCA']['tl_content']['fields']['donate_message'] = array(
			'label'                   => &$GLOBALS['TL_LANG']['MSC']['donate_message'],
			'exclude'                 => true,
			'inputType'               => 'text',
			'eval'                    => array('mandatory'=>true, 'maxlength'=>255, 'tl_class'=>'w50')
		);
		$GLOBALS['TL_DCA']['tl_content']['fields']['donate_total'] = array(
			'label'                   => &$GLOBALS['TL_LANG']['MSC']['donate_total'],
			'exclude'                 => true,
			'inputType'               => 'text',
			'eval'                    => array('mandatory'=>true, 'maxlength'=>255, 'tl_class'=>'w50')
		);
		$currencies = array(
			'USD' => 'USD - US Dollars',
			'GBP' => 'GBP - British Pounds',
			'AUD' => 'AUD - Australian Dollars',
			'BRL' => 'BRL - Brazilian Real',
			'CAD' => 'CAD - Canadian Dollars',
			'CZK' => 'CZK - Czech Koruny',
			'DKK' => 'DKK - Danish Kroner',
			'EUR' => 'EUR - Euros',
			'HKD' => 'HKD - Hong Kong Dollars',
			'HUF' => 'HUF - Hungarian Forints',
			'ILS' => 'ILS - Israeli New Shekels',
			'JPY' => 'JPY - Japanese Yen',
			'MYR' => 'MYR - Malaysian Ringgits',
			'MXN' => 'MXN - Mexican Pesos',
			'NZD' => 'NZD - New Zealand Dollars',
			'NOK' => 'NOK - Norwegian Krone',
			'PHP' => 'PHP - Philippine Pesos',
			'PLN' => 'PLN - Polish Zlotych',
			'SGD' => 'SGD - Singapore Dollars',
			'SEK' => 'SEK - Swedish Kronor',
			'CHF' => 'CHF - Swiss Francs',
			'TWD' => 'TWD - Taiwan New Dollars',
			'THB' => 'THB - Thai Baht'	
		);
		$GLOBALS['TL_DCA']['tl_content']['fields']['donate_currency_code'] = array
		(
				'label'                   => &$GLOBALS['TL_LANG']['MSC']['donate_currency_code'],
				'exclude'                 => true,
				'inputType'               => 'select',
				'options'                 => $currencies,
				'eval'                    => array('mandatory'=>true, 'tl_class'=>'w50')
		);
		$GLOBALS['TL_DCA']['tl_content']['fields']['donate_javascript'] = array(
			'label'                   => &$GLOBALS['TL_LANG']['MSC']['donate_javascript'],
			'exclude'                 => true,
			'inputType'               => 'checkbox',
				'eval'                    => array('tl_class'=>'clr')
		);
		$GLOBALS['TL_DCA']['tl_content']['fields']['donate_thanks'] = array(
				'label'                   => &$GLOBALS['TL_LANG']['MSC']['donate_thanks'],
				'exclude'                 => true,
				'inputType'               => 'pageTree',
				'eval'                    => array('mandatory'=>true, 'fieldType'=>'radio', 'tl_class'=>'clr')
		);
